package com.cf.studiomanage.service;

import com.cf.studiomanage.entity.Activity;
import com.cf.studiomanage.entity.ActivityRegistration;

import java.util.List;

public interface ActivityService {

    // 发布活动
    boolean create(Activity activity);

    // 修改活动
    boolean update(Activity activity);

    // 删除活动
    boolean delete(Long id);

    // 查询所有活动
    List<Activity> list();

    // 查询某个活动详情
    Activity getById(Long id);

    // 用户报名
    boolean register(Long userId, Long activityId);

    // 用户请假
    boolean requestLeave(Long userId, Long activityId, String reason);

    // 用户签到
    boolean signIn(Long userId, Long activityId, String signCode);

    // 查询活动报名情况
    List<ActivityRegistration> getRegistrations(Long activityId);
}
